package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchWaterQualityMonitoringDataMapper;
import com.ruoyi.system.domain.DispatchWaterQualityMonitoringData;
import com.ruoyi.system.service.IDispatchWaterQualityMonitoringDataService;

/**
 * 水质监测数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchWaterQualityMonitoringDataServiceImpl implements IDispatchWaterQualityMonitoringDataService 
{
    @Autowired
    private DispatchWaterQualityMonitoringDataMapper dispatchWaterQualityMonitoringDataMapper;

    /**
     * 查询水质监测数据
     * 
     * @param waterQualityMonitoringDataId 水质监测数据主键
     * @return 水质监测数据
     */
    @Override
    public DispatchWaterQualityMonitoringData selectDispatchWaterQualityMonitoringDataByWaterQualityMonitoringDataId(Long waterQualityMonitoringDataId)
    {
        return dispatchWaterQualityMonitoringDataMapper.selectDispatchWaterQualityMonitoringDataByWaterQualityMonitoringDataId(waterQualityMonitoringDataId);
    }

    /**
     * 查询水质监测数据列表
     * 
     * @param dispatchWaterQualityMonitoringData 水质监测数据
     * @return 水质监测数据
     */
    @Override
    public List<DispatchWaterQualityMonitoringData> selectDispatchWaterQualityMonitoringDataList(DispatchWaterQualityMonitoringData dispatchWaterQualityMonitoringData)
    {
        return dispatchWaterQualityMonitoringDataMapper.selectDispatchWaterQualityMonitoringDataList(dispatchWaterQualityMonitoringData);
    }

    /**
     * 新增水质监测数据
     * 
     * @param dispatchWaterQualityMonitoringData 水质监测数据
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchWaterQualityMonitoringData(DispatchWaterQualityMonitoringData dispatchWaterQualityMonitoringData)
    {
        return dispatchWaterQualityMonitoringDataMapper.insertDispatchWaterQualityMonitoringData(dispatchWaterQualityMonitoringData);
    }

    /**
     * 修改水质监测数据
     * 
     * @param dispatchWaterQualityMonitoringData 水质监测数据
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchWaterQualityMonitoringData(DispatchWaterQualityMonitoringData dispatchWaterQualityMonitoringData)
    {
        return dispatchWaterQualityMonitoringDataMapper.updateDispatchWaterQualityMonitoringData(dispatchWaterQualityMonitoringData);
    }

    /**
     * 批量删除水质监测数据
     * 
     * @param waterQualityMonitoringDataIds 需要删除的水质监测数据主键
     * @return 结果
     */
    @Override
    public int deleteDispatchWaterQualityMonitoringDataByWaterQualityMonitoringDataIds(Long[] waterQualityMonitoringDataIds)
    {
        return dispatchWaterQualityMonitoringDataMapper.deleteDispatchWaterQualityMonitoringDataByWaterQualityMonitoringDataIds(waterQualityMonitoringDataIds);
    }

    /**
     * 删除水质监测数据信息
     * 
     * @param waterQualityMonitoringDataId 水质监测数据主键
     * @return 结果
     */
    @Override
    public int deleteDispatchWaterQualityMonitoringDataByWaterQualityMonitoringDataId(Long waterQualityMonitoringDataId)
    {
        return dispatchWaterQualityMonitoringDataMapper.deleteDispatchWaterQualityMonitoringDataByWaterQualityMonitoringDataId(waterQualityMonitoringDataId);
    }
}
